using System;
using NUnit.Framework;

namespace ComponentTracer.Tests
{
    [TestFixture]
    public class TraceInterceptorTests
    {
        [Test]
        public void Func_Argumente_werden_gefiltert() {
            Assert.That(TraceInterceptor.FilterFuncArguments(new Func<int, int>[]{x => x + 1}), Is.Empty);
        }

        [Test]
        public void Func_erkennen() {
            Func<int, int> f = x => x + 1;

            Assert.That(typeof(Func<int, int>).IsInstanceOfType(f));
            Assert.That(f.GetType().FullName.StartsWith("System.Func`"));
        }
    }
}